package com.wsy.controller;

import com.wsy.entity.Address;
import com.wsy.service.UserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RequestMapping("user")
@RestController
public class UserController {
    @Resource
    UserService userService;

    @RequestMapping("findUserAddress")
    public List<Address> findUserAddress(String userId){
        return userService.findUserAddress(userId);
    }
}
